package com.ygqh.baby.mapper;

import com.ygqh.baby.po.YgAttribute;
import com.ygqh.baby.po.YgAttributeExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface YgAttributeMapper {

	int countByExample(YgAttributeExample example);

	int deleteByExample(YgAttributeExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgAttribute record);

	int insertSelective(YgAttribute record);

	List<YgAttribute> selectByExample(YgAttributeExample example);

	YgAttribute selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgAttribute record, @Param("example") YgAttributeExample example);

	int updateByExample(@Param("record") YgAttribute record, @Param("example") YgAttributeExample example);

	int updateByPrimaryKeySelective(YgAttribute record);

	int updateByPrimaryKey(YgAttribute record);

	int countSuper(@Param("q") String q);

	List<YgAttribute> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

	List<YgAttribute> selectAttributeByParentId(@Param("parentId") Long parentId);

}
